package com.atguigu.common.constant;

public class WareConstant {

    public enum Purchase{
        CREATED(1,"新建"), ASSIGNED(2,"已分配"),
        RECEIVED(3,"已领取"),FINISHED(4,"已完结"),
        HASERROR(5,"有异常");

        private Integer code;
        private String message;
        Purchase(Integer code,String message){
            this.code=code;
            this.message=message;
        }

        public Integer getCode() {
            return code;
        }

        public String getMessage() {
            return message;
        }
    }


    public enum PurchaseDetail{
        CREATED(1,"新建"), ASSIGNED(2,"已分配"),
        BEPURCHASING(3,"正在采购"),FINISHED(4,"已完结"),
        HASERROR(5,"有异常");
        private Integer code;
        private String message;
        PurchaseDetail(Integer code,String message){
            this.code=code;
            this.message=message;
        }

        public Integer getCode() {
            return code;
        }

        public String getMessage() {
            return message;
        }
    }
}
